#include<iostream>
#include<cstring>
using namespace std;
const int N = 2e5 + 10;
int s[N];
int n;
void add(int l, int r)
{
	s[l]++;
	s[r + 1]--;
}
int main()
{
	int t;
	cin >> t;
	while (t--) {
		memset(s, 0, sizeof(s));
		cin >> n;
		for (int i = 1; i <= n; i++) {
			int x;
			cin >> x;
			x = min(x, i);
			int l = i - x + 1;
			int r = i;
			add(l, r);
		}
		for (int i = 1; i <= n; i++) {
			s[i] += s[i - 1];
			cout << !!s[i] << " ";
		}
		cout << endl;
	}
	return 0;
}